package com.hdu.dwh.utils;

public class ExcludeDatabaseUtils {
    public static final String[] EXCLUDE_DATABASES = new String[]{
            "information_schema",
            "mysql",
            "performance_schema",
            "sys",
            "jdbc",
            "default",
            "runtime",
            "metadata"
    };

    public static boolean isExcludeDatabase(String databaseName) {
        for (String excludeDatabase : EXCLUDE_DATABASES) {
            if (excludeDatabase.equalsIgnoreCase(databaseName)) {
                return true;
            }
        }
        return false;
    }
}
